<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2016/9/22
  Time: 15:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <jsp:include page="../../head.jsp"/>
    <title>待受理页面</title>
    <script type="application/javascript" src="../../js/gtimp3/declaration.js"></script>
    <script type="text/javascript">
        var formSetting = {
            title: "",
            module: 'save',
            numCount: '1',
            columns: [],
            buttons: {
                custom: [{
                       id: "bhBtn",
                       value: "驳回",
                       click: function () {
                            jw.dialog({
                                iframe : 'toReject'+location.hash,
                                title : "驳回",
                                iframeFetchTitle : false,
                                width : 500,
                                height : 150
                            });
                       }
                      },{
                         id: "slBtn",
                         value: "受理",
                         click: function () {
                            ajaxGet("doValid?id="+location.hash.substr(1),function(result){
                                jw.alert(result.msg,{onOk:function(){
                                    if(result.result){
                                        $(backBtn).click();
                                    }
                                    else {
                                        //TODO
                                    }
                                  }
                                });
                           });
                         }
                        },{
                           id: "backBtn",
                           value: "返回",
                           click: function () {
                              location.replace('toValidMain');
                           }
                          }
                 ]
             }
        };
        $(document).ready(function () {
            $("#declarationsDataTable").mrdForm(formSetting);
            $(saveButton).hide();
        });
    </script>
</head>
<body>
<div id="declarationsDataTable"></div>
<div id="bhBox"></div>
<!--<iframe src="" width="100%"></iframe>-->
<a href="javascript:;" onclick="window.open('http://192.168.0.190:8080/order/detail-out?table=export&id='+location.hash.substr(1))">展示详情(调用)</a>
</body>
</html>
